package com.itheima.sh.config;

import org.springframework.context.annotation.ImportSelector;
import org.springframework.core.type.AnnotationMetadata;

/**
 * @Description:  SpringBoot 源码中大量使用
 * @Version: V1.0
 */
public class MyImportSelector implements ImportSelector {

    @Override
    public String[] selectImports(AnnotationMetadata importingClassMetadata) {
        System.out.println("selectImports");
        return new String[]{"com.itheima.sh.pojo.User","com.itheima.sh.config.MyConfig"};
    }
}
